package cn.wolfcode.luowowo.shop.service;

import cn.wolfcode.luowowo.shop.domain.ShopDetail;
import cn.wolfcode.luowowo.shop.domain.ShopStrategy;
import cn.wolfcode.luowowo.shop.query.ShopDetailQuery;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IShopDetailService {

    PageInfo query(ShopDetailQuery qo);

    /**
     * 物品推荐保存和更新
     * @param shopDetail
     */
    void saveOrUpdate(ShopDetail shopDetail);

    /**
     * 物品删除
     * @param id
     */
    void delete(Long id);

    /**
     * 查询物品推荐里的前3个展示在物品主页
     * @return
     */
    List<ShopDetail> getTop3();

    /**
     * 找所有商品
     * @return
     */
    List<ShopDetail> list();

    /**
     * 找到id下的商品
     * @param id
     * @return
     */
    ShopDetail selectByDetailId(Long id);
}
